package college;

import java.awt.BorderLayout;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Dimension;
import javax.swing.BoxLayout;
// 학생정보 등록
public class studeninfo extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;

	public studeninfo() {
		setLayout(new BorderLayout(0, 0));
		infotop();
		infocenter();
		infodown();	
	}
		

private void infotop(){
	JPanel top = new JPanel();
	add(top, BorderLayout.NORTH);
	
	JLabel infolab = new JLabel("학생 정보 등록");
	top.add(infolab);
	
}

private void infocenter(){
}

private void infodown(){
	JPanel down = new JPanel();
	down.setPreferredSize(new Dimension(10, 50));
	add(down, BorderLayout.SOUTH);
	down.setLayout(new BorderLayout(0, 0));
	
	JPanel panel = new JPanel();
	down.add(panel, BorderLayout.CENTER);
	panel.setLayout(new BorderLayout(0, 0));
	
	JPanel panel_1 = new JPanel();
	panel.add(panel_1, BorderLayout.CENTER);
	panel_1.setLayout(null);
	
	JButton btnNewButton = new JButton("확인");
	btnNewButton.setBounds(196, 10, 97, 23);
	panel_1.add(btnNewButton);
	
	JPanel panel_2 = new JPanel();
	add(panel_2, BorderLayout.WEST);
	panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.PAGE_AXIS));
	
	JLabel label = new JLabel("학번");
	panel_2.add(label);
	
	JLabel label_1 = new JLabel("이름");
	label_1.setAlignmentY(1.0f);
	panel_2.add(label_1);
	
	JLabel label_2 = new JLabel("패스워드");
	label_2.setAlignmentY(1.0f);
	panel_2.add(label_2);
	
	JLabel label_3 = new JLabel("전화번호");
	panel_2.add(label_3);
	
	JLabel label_4 = new JLabel("주소");
	panel_2.add(label_4);
	
	JLabel label_5 = new JLabel("소속학과");
	panel_2.add(label_5);
	
	JPanel panel_3 = new JPanel();
	panel_3.setPreferredSize(new Dimension(200, 10));
	add(panel_3, BorderLayout.EAST);
	
	JPanel panel_4 = new JPanel();
	add(panel_4, BorderLayout.CENTER);
	
	textField = new JTextField();
	textField.setColumns(10);
	panel_4.add(textField);
	
	textField_1 = new JTextField();
	textField_1.setColumns(10);
	panel_4.add(textField_1);
	
	textField_2 = new JTextField();
	textField_2.setColumns(10);
	panel_4.add(textField_2);
	
	textField_3 = new JTextField();
	textField_3.setColumns(10);
	panel_4.add(textField_3);
	
	textField_4 = new JTextField();
	textField_4.setColumns(10);
	panel_4.add(textField_4);
	
	textField_5 = new JTextField();
	textField_5.setColumns(10);
	panel_4.add(textField_5);
}
}

